package lab2.text04;

/**
 * Created by Administrator on 2017/10/12.
 */
public class Staff {
    //属性：员工姓名、员工号码、员工基本薪水、员工薪水增长额
    String Sname;
    int Snumber;
    int Ssalary;
    float Sgrowth;
    //行为：构造方法、获取员工姓名、获取员工号码、获取员工基本薪水、计算薪水增长额及计算增长后的工资总额
    String getSmane(){
        return Sname;
    }
    int getSnumber(){
        return Snumber;
    }
    int getSsalary(){
        return Ssalary;
    }
    float getSgrowth(){
        return Sgrowth;
    }
    float sum(){
        float sum;
        sum=Ssalary+Sgrowth;
        return sum;
    }
    //构造函数
    //nain函数
    public static void main(String[] args) {

    }
}
